package cn.hloger.spider.demo.authDemo.vo;

import lombok.Data;
import org.springframework.util.CollectionUtils;

import java.util.Map;

@Data
public class MarryVo {

    /**
     * 查询类型,单人/双人
     */
    private String cxlx;

    /**
     * 男方姓名
     */
    private String nameMan;
    /**
     * 男方身份证件号码
     */
    private String certNumMan;
    /**
     * 女方姓名
     */
    private String nameWoman;
    /**
     * 女方身份证件号码
     */
    private String certNumWoman;
    /**
     * 主体授权文件序列号
     */
    private String sqztxh;
    /**
     * 银行编码
     */
    private String yhbm;

    public MarryVo(Map<String, String> dataMap) {
        if (CollectionUtils.isEmpty(dataMap)) {
            return;
        }
        this.cxlx = dataMap.get("cxlx");
        this.nameMan = dataMap.get("name_man");
        this.certNumMan = dataMap.get("cert_num_man");
        this.nameWoman = dataMap.get("name_woman");
        this.certNumWoman = dataMap.get("cert_num_woman");
        this.sqztxh = dataMap.get("sqztxh");
        this.yhbm = dataMap.get("yhbm");
    }


    public MarryVo() {
    }
}
